Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Interest-rate term structure in g2process constructor #1937

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Hrushi20
Copy link

@Hrushi20 Hrushi20 commented Mar 29, 2024

I've added Interest rate term structure to G2Process and G2Forwardprocess. The term structure is used to add an additional term to the drifts of the underlying Ornstein-Uhlenbeck processes.

This PR aims to address Issue #1904

Copy link

boring-cyborg bot commented Mar 29, 2024

Thanks for opening this pull request! It might take a while before we look at it, so don't worry if there seems to be no feedback. We'll get to it.

@CLAassistant
Copy link

CLAassistant commented Mar 29, 2024

CLA assistant check
All committers have signed the CLA.

@Hrushi20
Copy link
Author

I'm interested in the math behind it. I'm not sure how to update the drift for G2ForwardProcess.

@coveralls
Copy link

Coverage Status

coverage: 72.492% (-0.005%) from 72.497%
when pulling 7a21fd8 on Hrushi20:feature-branch
into 9ff0542 on lballabio:master.

Copy link
Contributor

This PR was automatically marked as stale because it has been open 60 days with no activity. Remove stale label or comment, or this will be closed in two weeks.

@thrasibule
Copy link
Contributor

I'm not sure it's that useful to add the yieldcurve to the G2 process constructor with the way the class is set up right now. The math is pretty straightforward: $r_t=x_t + y_t + \varphi(t)$, where $\varphi(t)$ is a deterministic offset that doesn't need to be evolved using the stochastic process machinery. Given $x_t$ and $y_t$ we can compute the short rate by calling the shortRate method on the dynamics of a G2 model.
Otherwise should G2Process be a Stochastic1D process with two factors? I'm not sure this is allowed, the Stochastic1D class seems to enforce only one factor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants